package org.itzixi.pojo.convertor;


import org.itzixi.pojo.ChatMessage;
import org.itzixi.pojo.Comment;
import org.itzixi.pojo.bo.CommentBO;
import org.itzixi.pojo.netty.ChatMsg;
import org.itzixi.pojo.vo.CommentVO;
import org.mapstruct.MapMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface ChatMessageConvertor {

    ChatMessageConvertor INSTANCE = Mappers.getMapper( ChatMessageConvertor.class );


    @Mapping(source = "msgId", target = "id")
    ChatMessage chatMsg2ChatMessage(ChatMsg chatMsg);
}
